# eric7.Plugins.WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog

Module implementing the .desktop wizard dialog.

### Global Attributes

None

### Classes

DotDesktopWizardDialog | Class implementing the .desktop wizard dialog.

### Functions

None

## DotDesktopWizardDialog

Class implementing the .desktop wizard dialog.

### Derived from

QDialog, Ui_DotDesktopWizardDialog

### Class Attributes

None

### Class Methods

None

### Methods

DotDesktopWizardDialog | Constructor
__checkOK | Private slot to check, if the OK button should be enabled.
getCode | Public method to get the source code.
on_categoriesButton_clicked | Private slot to select the categories.
on_nameEdit_textChanged | Private slot to check, if the nameEdit field is empty.
on_notShowButton_clicked | Private slot to select the NotShowIn environments.
on_notShowEdit_textChanged | Private slot to check the contents of the notShowEdit field.
on_onlyShowButton_clicked | Private slot to select the OnlyShowIn environments.
on_onlyShowEdit_textChanged | Private slot to check the contents of the onlyShowEdit field.
on_projectButton_clicked | Private slot to populate some fields with data retrieved from the current project.
on_typeComboBox_currentIndexChanged | Private slot to handle a change of the .desktop type.
on_typeEdit_textChanged | Private slot to check, if the typeEdit field is empty.

### Static Methods

None

#### DotDesktopWizardDialog (Constructor)

DotDesktopWizardDialog(parent=None)

Constructor

parent (QWidget)
  reference to the parent widget

#### DotDesktopWizardDialog.__checkOK

__checkOK()

Private slot to check, if the OK button should be enabled.

#### DotDesktopWizardDialog.getCode

getCode()

Public method to get the source code.

Return:
  generated code

Return Type:
  str

#### DotDesktopWizardDialog.on_categoriesButton_clicked

on_categoriesButton_clicked()

Private slot to select the categories.

#### DotDesktopWizardDialog.on_nameEdit_textChanged

on_nameEdit_textChanged(_txt)

Private slot to check, if the nameEdit field is empty.

_txt (str)
  text of the entry field (unused)

#### DotDesktopWizardDialog.on_notShowButton_clicked

on_notShowButton_clicked()

Private slot to select the NotShowIn environments.

#### DotDesktopWizardDialog.on_notShowEdit_textChanged

on_notShowEdit_textChanged(_txt)

Private slot to check the contents of the notShowEdit field.

_txt (str)
  text of the entry field (unused)

#### DotDesktopWizardDialog.on_onlyShowButton_clicked

on_onlyShowButton_clicked()

Private slot to select the OnlyShowIn environments.

#### DotDesktopWizardDialog.on_onlyShowEdit_textChanged

on_onlyShowEdit_textChanged(_txt)

Private slot to check the contents of the onlyShowEdit field.

_txt (str)
  text of the entry field (unused)

#### DotDesktopWizardDialog.on_projectButton_clicked

on_projectButton_clicked()

Private slot to populate some fields with data retrieved from the current project.

#### DotDesktopWizardDialog.on_typeComboBox_currentIndexChanged

on_typeComboBox_currentIndexChanged(index)

Private slot to handle a change of the .desktop type.

index (int)
  index of the selected entry

#### DotDesktopWizardDialog.on_typeEdit_textChanged

on_typeEdit_textChanged(_txt)

Private slot to check, if the typeEdit field is empty.

_txt (str)
  text of the entry field (unused)

Up